IReactiveList interface¶
Attributes: [DefaultMember("Item")]
Defined in
Namespace: ReactiveList.Reactive.Collections Assembly: ReactiveList.Reactive.dll Full name: ReactiveList.Reactive.Collections.IReactiveList<T> Modifiers: public abstract
Summary¶
Represents a reactive, observable list that notifies subscribers of changes to its items and supports batch
operations and advanced collection manipulation.
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Class hierarchy
classDiagram
class IReactiveList~T~
class IList~T~ {
<>
}
IList~T~ <|.. IReactiveList~T~
class ICollection~T~ {
<>
}
ICollection~T~ <|.. IReactiveList~T~
class IEnumerable~T~ {
<>
}
IEnumerable~T~ <|.. IReactiveList~T~
class IEnumerable {
<>
}
IEnumerable <|.. IReactiveList~T~
class IList {
<>
}
IList <|.. IReactiveList~T~
class ICollection {
<>
}
ICollection <|.. IReactiveList~T~
class IReadOnlyList~T~ {
<>
}
IReadOnlyList~T~ <|.. IReactiveList~T~
class IReadOnlyCollection~T~ {
<>
}
IReadOnlyCollection~T~ <|.. IReactiveList~T~
class IReactiveSource~T~ {
<>
}
IReactiveSource~T~ <|.. IReactiveList~T~
class INotifyCollectionChanged {
<>
}
INotifyCollectionChanged <|.. IReactiveList~T~
class IDisposable {
<>
}
IDisposable <|.. IReactiveList~T~
class INotifyPropertyChanged {
<>
}
INotifyPropertyChanged <|.. IReactiveList~T~
Implements: IList
Remarks¶
IReactiveList extends standard list and collection interfaces with reactive capabilities, allowing consumers to observe additions, removals, and changes to the list in real time. It is designed for scenarios where changes to the collection need to be tracked and responded to, such as in data-binding or reactive programming contexts. Implementations are expected to be thread-safe only if explicitly documented.
Properties¶
| Name | Summary |
|---|---|
| Count | Gets the number of elements contained in the list. |
| IsReadOnly | Gets a value indicating whether the list is read-only. |
| Added | Gets the added. |
| Changed | Gets the changed. |
| CurrentItems | Gets the current items. |
| Items | Gets the items. |
| ItemsAdded | Gets the items added. |
| ItemsChanged | Gets the items changed. |
| ItemsRemoved | Gets the items removed. |
| Removed | Gets the removed. |
| this[] | Gets or sets the element at the specified index. |
Methods¶
| Name | Summary |
|---|---|
| GetEnumerator | Returns an enumerator that iterates through the list. |
| AddRange | Adds the range. |
| Clear | Removes all items from the ICollection (opens in a new tab). |
| Edit | Executes a batch edit operation on the list. |
| InsertRange | Inserts the range. |
| Move | Moves an item from one index to another. |
| Remove | Removes the specified items. |
| RemoveAt | Removes the IList (opens in a new tab) item at the specified index. |
| RemoveMany | Removes all elements that match the specified predicate from the collection. |
| RemoveRange | Removes the range. |
| ReplaceAll | Replaces all existing items with new items. |
| Update | Updates the specified item. |